<?php
gatekeeper ();
action_gatekeeper("assigntask");
// set the title
// for distributed plugins, be sure to use elgg_echo() for internationalization
$title = elgg_echo('submana:assignment');
$group = get_entity($vars ['group_guid']);
$listproj_url = elgg_get_site_url () . "submana/listpro/$group->guid";
elgg_push_breadcrumb($group->name, $group->getURL());
elgg_push_breadcrumb(elgg_echo('submana:listpro'), $listproj_url);
elgg_push_breadcrumb($title);

// start building the main column of the page
$content = elgg_view_title ( $title );

// add form
$content.= elgg_view_form('assigntask', null, array(
	'group_guid' => $vars['group_guid'],
	'project_guid' => $vars['project_guid'],
	'assignment_guid' => $vars['assignment_guid'],
));

// optionally, add the content for the sidebar
$sidebar = "";

$body = elgg_view_layout ( 'one_sidebar', array (
		'content' => $content,
		'sidebar' => $sidebar 
) );

echo elgg_view_page($title, $body);
//echo $vars ['group_guid'];
?>